package com.freesky.biz.icbc.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.freesky.common.annotation.Desensitized;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 扫码业务领取记录
 */
@Data
@ContentRowHeight(22)
@ColumnWidth(25)
@HeadRowHeight(25)
@HeadStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)//表头样式
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)
public class TScanReceive implements java.io.Serializable {
    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    private String receiveId;

    @ExcelIgnore
    private String couponType;

    @ExcelProperty("姓名")
    @Desensitized(type = Desensitized.DesensitizedType.USER_NAME)
    private String name;

    @ExcelProperty("手机号码")
    @Desensitized(type = Desensitized.DesensitizedType.PHONE)
    private String mobile;

    @ExcelProperty("领取金额")
    private String amt;

    @ExcelProperty("企业账号")
    private String alipayAccount;

    @ExcelIgnore
    private String busiCode;

    @ExcelProperty("业务名称")
    private String busiName;

    @ExcelProperty("状态")
    private String status;

    @ExcelProperty("领取时间")
    private String createTime;

    @ExcelProperty("核销时间")
    private String updateTime;


    @ExcelProperty("客户经理")
    private String clientName;

    @ExcelProperty("网点")
    private String bank1;

    @ExcelProperty("支行")
    private String bank2;

    @ExcelProperty("分行")
    private String bank3;

    @ExcelIgnore
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }
}
